import { defineStore } from 'pinia'
interface IUser {
	nick: string
	headerimg: string
}
export const useUserStore = defineStore('user',{
    state:()=>{
        return{
            user:{nick:'',headerimg:''}
        }
    },
    actions: {
		saveUser(user: IUser) {
			this.user = user
		},
	},
    getters:{
        userInfo:(state)=>state.user
    }
}
)